package com.neusoft.zqygbc.neusoft_wenda.model;

import com.neusoft.zqygbc.neusoft_wenda.service.AnswerService;
import com.neusoft.zqygbc.neusoft_wenda.service.QuestionService;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;

/**
 * Created by Lenovo on 2017/4/24.
 */

public class QusetionModel extends RetrofitBaseModel {


    public Call listquestion(String page) {
        Call call = retrofitCallBuilder.buildCall(QuestionService.class, "getList",  new Object[]{page});
        return call;
    }

    public Call getQuestionDetail(String qid) {
        Call call = retrofitCallBuilder.buildCall(QuestionService.class, "getQuestionDetail",  new Object[]{qid});
        return call;
    }
    public Call addquestion(String uid, String description, String tid, String textcontent, Map<String, RequestBody> maps) {
        Call call = retrofitCallBuilder.buildCall(QuestionService.class, "addquestion",  new Object[]{uid,description,tid,textcontent,maps});
        return call;
    }
    public Call myquestionlist(String uid) {
        Call call = retrofitCallBuilder.buildCall(QuestionService.class, "myquestionlist",  new Object[]{uid});
        return call;
    }
    public Call search(String search) {
        Call call = retrofitCallBuilder.buildCall(QuestionService.class, "search",  new Object[]{search});
        return call;
    }
    public Call getQuestionByTid(String tid) {
        Call call = retrofitCallBuilder.buildCall(QuestionService.class, "getQuestionByTid",  new Object[]{tid});
        return call;
    }


}
